package com.mjp.learn.design.proxy.staticProxy;

import com.mjp.learn.design.proxy.Movable;

public class LoggingProxy implements Movable {
    private Movable obj;

    public LoggingProxy(Movable obj) {
        this.obj = obj;
    }

    @Override
    public void run() {
        System.out.println("move start!");
        obj.run();
        System.out.println("move end!");
    }
}
